package com.ai.bitcoin.schedule.task;

import com.ai.bitcoin.jpa.entity.BccBatch;

import java.util.Date;

/**
 * @author Jason
 * @date 2018/3/30
 **/
class CommonUtil {

    static BccBatch getBatchNo(String batch) {
        BccBatch bccBatch = new BccBatch();
        bccBatch.setBatchNo(batch);
        bccBatch.setBatchType(com.ai.bitcoin.constant.Bcc.BathType.UPDATE_DAILY_INFO);
        bccBatch.setBatchTimeStart(new Date());
        bccBatch.setBatchState(com.ai.bitcoin.constant.Bcc.BathState.UPDATE_DONE);
        return bccBatch;
    }


}
